<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			/*
			 浏览器提供的存储数据的对象
			 localStorage:永久存储(硬盘)
			 sessionStorage:会话缓存，关闭浏览器窗口数据就不存在了
			*/
			//增
			localStorage.setItem("name", "zhangsan");
			//查
			var name = localStorage.getItem("name");
			console.log(name);
			//删
			// localStorage.removeItem("name");
			//清空
			// localStorage.clear();

			// sessionStorage.setItem("bwf", "123");
		</script>
	</body>
</html>
